package Agent;

public class ghostDist implements Comparable{
	public int x;
	public int y;
	public int pos;
	public int dist;
	public byte dir;
	
	public ghostDist(int x, int y, int pos, int dist, byte dir){
		this.x = x;
		this.y = y;
		this.pos = pos;
		this.dist = dist;
		this.dir = dir;
	}
	
	public int compareTo(ghostDist other){
		if(this.dist < other.dist)
			return -1;
		else
			return 1;
	}

	@Override
	public int compareTo(Object arg0) {
		if(true)
			return 1;
		ghostDist other = (ghostDist) arg0;
		if(this.dist < other.dist)
			return -1;
		else
			return 1;
	}
}
